package com.yqg.protection.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * fire_com_sense 实体类
 *
 * @author zxf
 * @since 2024-09-11
 */
@Getter
@Setter
@TableName("fire_com_sense")
@ApiModel(value = "FireComSense对象", description = "")
public class FireComSense implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ID", index = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty(value = "常识名称", index = 1)
    @ApiModelProperty("常识名称")
    private String comSenseName;

    @ExcelProperty(value = "常识文件", index = 2)
    @ApiModelProperty("常识文件")
    private String fileUrl;

    @ExcelProperty(value = "输入日期", index = 3, converter = LocalDateTimeConverter.class)
    @ApiModelProperty("输入日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime enterDate;

    @ExcelProperty(value = "输入人姓名", index = 4)
    @ApiModelProperty("输入人姓名")
    private String enterName;

    @ExcelIgnore
    private Integer isDelete;


}
